package com.wm.yigongfang.common.web;

import lombok.Data;

import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @date 2021/5/10 0:44
 */
@Data
public class PageResult<T> {

    /**
     *  总条数
     */
    private Long totalCount;

    /**
     *  数据
     */
    private List<T> data;

    public PageResult() {
    }

    public PageResult(List<T> data, Long totalCount) {
        this.data = data;
        this.totalCount = totalCount;
    }
}
